package com.hll.basic;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author hll
 * @create 2022-05-11 21:27
 */
@Controller
public class HelloController {
  @RequestMapping("/success") // 不可重复定义
  public String toTarget() {
    // 由视图解析器--》web-inf/templates/success.html
    return "success";
  }

  /* @RequestMapping("/")
  public String toIndex() {
    return "index";
  }*/
}
